#include "widget.h"
#include "ui_widget.h"

#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->comboBox->addItem("老八秘制小汉堡");
    ui->comboBox->addItem("老谭酸菜牛肉面");
    ui->comboBox->addItem("铁皮芝士汉堡");

    ui->comboBox_2->addItem("薯条");
    ui->comboBox_2->addItem("坤块");
    ui->comboBox_2->addItem("炸坤翅");

    ui->comboBox_3->addItem("鸡汤");
    ui->comboBox_3->addItem("有吸铁石的瓜");
    ui->comboBox_3->addItem("日本生可乐");

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug() << "主食: " << ui->comboBox->currentText();
    qDebug() << "小食: " << ui->comboBox_2->currentText();
    qDebug() << "饮料: " << ui->comboBox_3->currentText();

}
